package cn.fancy.sdk.utils;

public class CheckLoginStateUtil {

    public static int getState(int bindState,int cardState){
        switch (bindState){
            case 0:
                if(cardState==0){
                    return 0;
                }else if(cardState==1){
                    return 1;
                }else
                    return 2;
            case 1:
                if(cardState==0){
                    return 3;
                }else if(cardState==1){
                    return 4;
                }else
                    return 5;
            case 2:
                if(cardState==0){
                    return 6;
                }else if(cardState==1){
                    return 7;
                }else
                    return 8;
        }
        return 0;
    }
}
